

<% form_for(@user, :url => { :action => "update_user" }, :html => {:id => "form0", :class => "required-validate"}) do |f| %>
  <%= hidden_field_tag "user[id]", @user.id %>
  <%= hidden_field_tag "test_id", flash[:test_id] %>


姓名:<input type="text" name="user[username]" value="<%=@user.username%>" class="required"/><br /><br />
  邮箱:<input type="text" name="user[email]"  value="<%=@user.email%>" class="required validate-email"/><br /><br />
  Q&nbsp;Q:<input type="text" name="user[qq]" value="<%=@user.qq%>" class="required"/><br /><br />
  职业:<input type="text" name="user[perfession]" value="<%=@user.perfession%>" class="required"/><br /><br />
  年龄:<input type="text" name="user[age]" value="<%=@user.age%>" class="required validate-number"/><br /><br />
  性别:<input type="radio" name="user[gender]" value = "男" checked="checked">男
               <input type="radio" name="user[gender]" value="女">女<br><br />
  婚否:<input type="radio" name="user[married]" value = "未婚" checked="checked">未婚
                <input type="radio" name="user[married]" value="已婚"/>未婚
                <input type="radio" name="user[married]" value="保密"/>保密<br /><br />
  受教育程度:<select class="input_style"  name="user[edu_status]">
               <option value="ss">硕士</option>
               <option value="bk">本科</option>
               <option value="zk">专科</option>
               <option value="dz">大专</option>
               <option value="gz">高中</option>
               <option value="qt">高中以下</option>
          </select><br/>

  <%= f.submit "下一步" %>

<% end %>

       
